import service from '@/utils/request'

// @Tags ProductStylesHistory
// @Summary 创建款式资讯-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductStylesHistory true "创建款式资讯-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /productStylesHistory/createProductStylesHistory [post]
export const createProductStylesHistory = (data) => {
  return service({
    url: '/productStylesHistory/createProductStylesHistory',
    method: 'post',
    data
  })
}

// @Tags ProductStylesHistory
// @Summary 删除款式资讯-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductStylesHistory true "删除款式资讯-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productStylesHistory/deleteProductStylesHistory [delete]
export const deleteProductStylesHistory = (params) => {
  return service({
    url: '/productStylesHistory/deleteProductStylesHistory',
    method: 'delete',
    params
  })
}

// @Tags ProductStylesHistory
// @Summary 批量删除款式资讯-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除款式资讯-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productStylesHistory/deleteProductStylesHistory [delete]
export const deleteProductStylesHistoryByIds = (params) => {
  return service({
    url: '/productStylesHistory/deleteProductStylesHistoryByIds',
    method: 'delete',
    params
  })
}

// @Tags ProductStylesHistory
// @Summary 更新款式资讯-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductStylesHistory true "更新款式资讯-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /productStylesHistory/updateProductStylesHistory [put]
export const updateProductStylesHistory = (data) => {
  return service({
    url: '/productStylesHistory/updateProductStylesHistory',
    method: 'put',
    data
  })
}

// @Tags ProductStylesHistory
// @Summary 用id查询款式资讯-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ProductStylesHistory true "用id查询款式资讯-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /productStylesHistory/findProductStylesHistory [get]
export const findProductStylesHistory = (params) => {
  return service({
    url: '/productStylesHistory/findProductStylesHistory',
    method: 'get',
    params
  })
}

// @Tags ProductStylesHistory
// @Summary 分页获取款式资讯-历史快照列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取款式资讯-历史快照列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /productStylesHistory/getProductStylesHistoryList [get]
export const getProductStylesHistoryList = (params) => {
  return service({
    url: '/productStylesHistory/getProductStylesHistoryList',
    method: 'get',
    params
  })
}
